﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace DSPrintSeting
{
    [ComVisible(true)]
    [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
    [Guid("862B35FB-6A11-4A94-A2C5-599112DF073F")]
    public interface ICom
    {
        [DispId(1)]
        bool CloseDevice();
        [DispId(2)]
        int GetStatus();
        [DispId(3)]
        void MovePage(double l);
        [DispId(4)]
        bool OpenDevice(string port);
        [DispId(5)]
        string GetDefaultPrinter();
        [DispId(6)]
        string[] GetInstalledPrinters();
        [DispId(7)]
        bool SetDefaultPrinter(string printerName);
    }

}
